package com.better.mongodb.test.mode;

import lombok.Data;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/11/30.
 */
@Data
@Accessors(chain = true)
public class Order implements Serializable {
    private static final long serialVersionUID = 4738576111790390042L;

    @Id
    private ObjectId objectId;

    private List<Detail> details;

    /**
     * 企业编号
     */
    private String compyCode;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 用户名
     */
    private String userName;
    private String testString = "";
}
